from django.conf.urls import url
from django.views.generic import TemplateView
from django.contrib.auth.decorators import login_required

from apps.users.views import *

urlpatterns = [
    # 个人中心：
    url(r'^info/$', UserInfoView.as_view(), name="info"),
    # 更新头像
    url(r'^image/upload/$', UploadImageView.as_view(), name="image"),
    # 更新密码
    url(r'^update/pwd/$', ChangePwdView.as_view(), name="update_pwd"),
    # 收藏相关：
    url(r'^myfavorg/$', MyFavOrgView.as_view(), name="myfavorg"),
    url(r'^myfav_teacher/$', MyFavTeacherView.as_view(), name="myfav_teachers"),
    url(r'^myfav_course/$', MyFavCourseView.as_view(), name="myfav_course"),
    # 消息
    url(r'^messages/$', MyMessageView.as_view(), name="messages"),

]
